]> git.mxchange.org Git - friendica.git/commitdiff
fix activate share-button on nonfollowers
authorJakobus Schürz <jakobus.schuerz@schuerz.at>
Thu, 23 Mar 2023 18:51:12 +0000 (19:51 +0100)
committerJakobus Schürz <jakobus.schuerz@schuerz.at>
Thu, 23 Mar 2023 19:20:13 +0000 (20:20 +0100)
I don't know, if this really resolves the problem... but it looks like,
it does.

fixes #12923

view/theme/frio/templates/wall_thread.tpl

index b4cd291b013e5b8cabdae41d3674ce2021ea20a8..4e6347fc1e732b74cf2bb491a5dbcfc56840739a 100644 (file)
@@ -316,7 +316,7 @@ as the value of $top_child_total (this is done at the end of this file)
                                        {{/if}}
                                {{/if}}
                                {{if $item.vote.announce}}
-                               <button type="button" class="btn-link button-announces{{if $item.responses.announce.self}} active" aria-pressed="true{{/if}}" id="announce-{{$item.id}}" title="{{$item.vote.announce.0}}" onclick="doActivityItemAction({{$item.id}}, 'announce'{{if $item.responses.announce.self}}, true{{/if}});" ><i class="fa fa-retweet" aria-hidden="true"></i>&nbsp;{{$item.vote.announce.1}}</button>
+                               <button type="button" class="btn-link button-announces{{if $item.responses.announce.self or $item.reshared }} active" aria-pressed="true{{/if}}" id="announce-{{$item.id}}" title="{{$item.vote.announce.0}}" onclick="doActivityItemAction({{$item.id}}, 'announce'{{if $item.responses.announce.self}}, true{{/if}});" ><i class="fa fa-retweet" aria-hidden="true"></i>&nbsp;{{$item.vote.announce.1}}</button>
                                <span role="presentation" class="separator"></span>
                                {{/if}}
                                {{if $item.vote.share}}