fix: upload only post likes ui
This commit is contained in:
parent
56cea83933
commit
a7c0046762
2 changed files with 2 additions and 2 deletions
|
@ -289,7 +289,7 @@
|
||||||
("class" "flex gap-1 reactions_box")
|
("class" "flex gap-1 reactions_box")
|
||||||
("hook" "check_reactions")
|
("hook" "check_reactions")
|
||||||
("hook-arg:id" "{{ post.id }}")
|
("hook-arg:id" "{{ post.id }}")
|
||||||
(text "{% if post.context.reactions_enabled -%} {% if post.content|length > 0 -%} {{ self::likes(id=post.id, asset_type=\"Post\", likes=post.likes, dislikes=post.dislikes) }} {%- endif %} {%- endif %} {% if post.context.repost and post.context.repost.reposting -%}")
|
(text "{% if post.context.reactions_enabled -%} {% if post.content|length > 0 or post.uploads|length > 0 -%} {{ self::likes(id=post.id, asset_type=\"Post\", likes=post.likes, dislikes=post.dislikes) }} {%- endif %} {%- endif %} {% if post.context.repost and post.context.repost.reposting -%}")
|
||||||
(a
|
(a
|
||||||
("href" "/post/{{ post.context.repost.reposting }}")
|
("href" "/post/{{ post.context.repost.reposting }}")
|
||||||
("class" "button small camo")
|
("class" "button small camo")
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
ALTER TABLE posts
|
ALTER TABLE posts
|
||||||
ADD COLUMN circle BIGINT NOT NULL DEFAULT 0;
|
DROP COLUMN circle;
|
||||||
|
|
||||||
ALTER TABLE posts
|
ALTER TABLE posts
|
||||||
ADD COLUMN stack BIGINT NOT NULL DEFAULT 0;
|
ADD COLUMN stack BIGINT NOT NULL DEFAULT 0;
|
Loading…
Add table
Add a link
Reference in a new issue