diff --git a/epicyon-profile.css b/epicyon-profile.css
index e6079160..e645677e 100644
--- a/epicyon-profile.css
+++ b/epicyon-profile.css
@@ -394,6 +394,10 @@ a:link {
color: var(--main-fg-color);
}
+.announce {
+ width: 50px;
+}
+
.darker {
background-color: var(--main-bg-color-reply);
}
diff --git a/webinterface.py b/webinterface.py
index 5beaa97c..1cd2da98 100644
--- a/webinterface.py
+++ b/webinterface.py
@@ -1124,26 +1124,29 @@ def individualPostAsHtml(baseDir: str, \
messageId=postJsonObject['id'].replace('/activity','')
titleStr+='@'+actorNickname+'@'+actorDomain+''
- if isAnnounced and postJsonObject['object'].get('attributedTo'):
- announceNickname=getNicknameFromActor(postJsonObject['object']['attributedTo'])
- announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['attributedTo'])
- titleStr+=' announced @'+announceNickname+'@'+announceDomain+''
-
- if not isAnnounced and postJsonObject['object'].get('inReplyTo'):
- containerClassIcons='containericons darker'
- containerClass='container darker'
- avatarPosition=' class="right"'
- #timeClass='time-left'
- if '/statuses/' in postJsonObject['object']['inReplyTo']:
- replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo'])
- replyDomain,replyPort=getDomainFromActor(postJsonObject['object']['inReplyTo'])
- if replyNickname and replyDomain:
- titleStr+=' replying to @'+replyNickname+'@'+replyDomain+''
+ if isAnnounced:
+ if postJsonObject['object'].get('attributedTo'):
+ announceNickname=getNicknameFromActor(postJsonObject['object']['attributedTo'])
+ announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['attributedTo'])
+ titleStr+=' @'+announceNickname+'@'+announceDomain+''
else:
- postDomain=postJsonObject['object']['inReplyTo'].replace('https://','').replace('http://','').replace('dat://','')
- if '/' in postDomain:
- postDomain=postDomain.split('/',1)[0]
- titleStr+=' replying to '+postDomain+''
+ titleStr+=' @unattributed'
+ else:
+ if postJsonObject['object'].get('inReplyTo'):
+ containerClassIcons='containericons darker'
+ containerClass='container darker'
+ avatarPosition=' class="right"'
+ #timeClass='time-left'
+ if '/statuses/' in postJsonObject['object']['inReplyTo']:
+ replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo'])
+ replyDomain,replyPort=getDomainFromActor(postJsonObject['object']['inReplyTo'])
+ if replyNickname and replyDomain:
+ titleStr+=' replying to @'+replyNickname+'@'+replyDomain+''
+ else:
+ postDomain=postJsonObject['object']['inReplyTo'].replace('https://','').replace('http://','').replace('dat://','')
+ if '/' in postDomain:
+ postDomain=postDomain.split('/',1)[0]
+ titleStr+=' replying to '+postDomain+''
attachmentStr=''
if postJsonObject['object']['attachment']:
if isinstance(postJsonObject['object']['attachment'], list):