Added hiden tag timeline; css style fix for edit status notification

This commit is contained in:
localhost_frssoft 2022-10-17 04:48:46 +03:00
parent e83dbe7ca9
commit 0cd239b8aa
3 changed files with 14 additions and 2 deletions

View File

@ -164,7 +164,7 @@ func (s *service) NavPage(c *client) (err error) {
} }
func (s *service) TimelinePage(c *client, tType, instance, listId, maxID, func (s *service) TimelinePage(c *client, tType, instance, listId, maxID,
minID string) (err error) { minID string, tag string) (err error) {
var nextLink, prevLink, title string var nextLink, prevLink, title string
var statuses []*mastodon.Status var statuses []*mastodon.Status
@ -209,6 +209,13 @@ func (s *service) TimelinePage(c *client, tType, instance, listId, maxID,
return err return err
} }
title = "The Whole Known Network" title = "The Whole Known Network"
case "tag":
statuses, err = c.GetTimelineHashtag(c.ctx, tag, false, &pg)
if err != nil {
return err
}
title = "Tag timeline"
case "list": case "list":
statuses, err = c.GetTimelineList(c.ctx, listId, &pg) statuses, err = c.GetTimelineList(c.ctx, listId, &pg)
if err != nil { if err != nil {

View File

@ -163,7 +163,8 @@ func NewHandler(s *service, logger *log.Logger, staticDir string) http.Handler {
list := q.Get("list") list := q.Get("list")
maxID := q.Get("max_id") maxID := q.Get("max_id")
minID := q.Get("min_id") minID := q.Get("min_id")
return s.TimelinePage(c, tType, instance, list, maxID, minID) tag := q.Get("tag")
return s.TimelinePage(c, tType, instance, list, maxID, minID, tag)
}, SESSION, HTML) }, SESSION, HTML)
defaultTimelinePage := handle(func(c *client) error { defaultTimelinePage := handle(func(c *client) error {

View File

@ -202,6 +202,10 @@ textarea {
opacity: unset; opacity: unset;
} }
.notification-container.update .status-container {
opacity: unset;
}
.notification-info-text span { .notification-info-text span {
vertical-align: middle; vertical-align: middle;
} }