Browse Source

fix follow requests

pull/48/head
Rasmus Lindroth 5 years ago
parent
commit
684c5a8693
  1. 7
      feed.go
  2. 2
      util.go

7
feed.go

@ -1053,6 +1053,7 @@ func (n *NotificationsFeed) LoadNewer() int {
case "poll":
Notify(n.app.Config.NotificationConfig, NotificationPoll,
"Poll has ended", "")
default:
}
}
}
@ -1136,6 +1137,9 @@ func (n *NotificationsFeed) DrawToot() {
pre := SublteText(n.app.Config.Style, "A poll of yours or one you participated in has ended") + "\n\n"
text, controls = showTootOptions(n.app, notification.Status, n.showSpoiler)
text = pre + text
case "follow_request":
text = SublteText(n.app.Config.Style, FormatUsername(notification.Account)+" wants to follow you. This is currently not implementet, so use another app to accept or reject the request.\n\n")
default:
}
n.app.UI.StatusView.SetText(text)
@ -1171,6 +1175,9 @@ func (n *NotificationsFeed) Input(event *tcell.EventKey) {
return
}
if notification.Type == "follow_request" {
return
}
status := notification.Status
if status.Reblog != nil {
status = status.Reblog

2
util.go

@ -364,6 +364,8 @@ func Notify(nc NotificationConfig, t NotificationType, title string, body string
if nc.NotificationPost == false {
return
}
default:
return
}
beeep.Notify(title, body, "")

Loading…
Cancel
Save