View button on shared item to get to the profile

merge-requests/30/head
Bob Mottram 2021-08-07 13:24:12 +01:00
parent 680adeb228
commit e042b47721
1 changed files with 6 additions and 2 deletions

View File

@ -1297,9 +1297,13 @@ def htmlSearchResultShare(baseDir: str, sharedItem: {}, translate: {},
contactActor = \
httpPrefix + '://' + domainFull + '/users/' + contactNickname
sharedItemsForm += \
'<p><a href="' + actor + '?replydm=sharedesc:' + \
'<p>' + \
'<a href="' + actor + '?replydm=sharedesc:' + \
sharedItem['displayName'] + '?mention=' + contactActor + \
'"><button class="button">' + translate['Contact'] + '</button></a>\n'
'"><button class="button">' + translate['Contact'] + \
'</button></a>\n' + \
'<a href="' + contactActor + '"><button class="button">' + \
translate['View'] + '</button></a>\n'
# should the remove button be shown?
showRemoveButton = False