parsav  Diff

Differences From Artifact [6d8fb63eed]:

To Artifact [1e93b5b498]:


    38     38   	if co.aid ~= 0 then
    39     39   		pg:lpush('<form class="action-bar" method="post">')
    40     40   		if not co.srv:post_liked_uid(co.who.id, p.id)
    41     41   			then pg:lpush('<button class="pos" name="act" accesskey="l" value="like">like</button>')
    42     42   			else pg:lpush('<button class="neg" name="act" accesskey="l" value="dislike">dislike</button>')
    43     43   		end
    44     44   		pg:lpush('<button class="pos" name="act" accesskey="r" value="rt">retweet</button>')
           45  +		if co.who.rights.powers.crier() then
           46  +			pg:lpush('<button name="act" accesskey="p" value="promote">promote</button>')
           47  +		end
    45     48   		if p.author == co.who.id then
    46     49   			if co.who.rights.powers.edit() then
    47     50   				pg:lpush('<a class="button" accesskey="e" href="/post/'):rpush(path(1)):lpush('/edit">edit</a>')
    48     51   			end
    49     52   			pg:lpush('<a class="neg button" accesskey="d" href="/post/'):rpush(path(1)):lpush('/del">delete</a>')
    50     53   		elseif co.who.rights.powers.snitch() then
    51         -			pg:lpush('<a class="neg button" accesskey="s" href="/post/'):rpush(path(1)):lpush('/report">report</a>')
           54  +			pg:lpush('<a class="neg button" accesskey="s" href="/post/'):rpush(path(1)):lpush('/snitch">report</a>')
    52     55   		end
    53     56   		-- TODO list user's chosen reaction emoji
    54     57   		pg:lpush('</form>')
    55     58   
    56     59   	end
    57     60   	pg:lpush('<div id="convo" data-live="10">')
    58     61   	render_tweet_replies(co, &pg, p.id)