mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-06 03:48:45 +00:00
Added prototype send pleroma emoji reactions via reactions page
This commit is contained in:
parent
80170099f8
commit
9cdac3e623
14 changed files with 5128 additions and 2 deletions
|
@ -11,6 +11,8 @@ import (
|
|||
"bloat/model"
|
||||
"bloat/renderer"
|
||||
"bloat/util"
|
||||
|
||||
"github.com/enescakir/emoji"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -513,7 +515,9 @@ func (s *service) ReactedByPage(c *client, id string) (err error) {
|
|||
cdata := s.cdata(c, "reactions", 0, 0, "")
|
||||
data := &renderer.ReactedByData{
|
||||
CommonData: cdata,
|
||||
ID: id,
|
||||
Reactions: reactions,
|
||||
ReactionEmojis: emoji.Map(),
|
||||
}
|
||||
return s.renderer.Render(c.rctx, c.w, renderer.ReactedByPage, data)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue