start working on parent/child statuses

This commit is contained in:
tsmethurst
2021-06-16 17:00:54 +02:00
parent a42e05eee0
commit 6a053ecfd8
5 changed files with 130 additions and 4 deletions

View File

@ -11,11 +11,10 @@ func (f *filter) StatusHometimelineable(targetStatus *gtsmodel.Status, requestin
l := f.log.WithFields(logrus.Fields{
"func": "StatusHometimelineable",
"statusID": targetStatus.ID,
"requestingAccountID": requestingAccount.ID,
})
// status owner should always be able to see their status in their timeline so we can return early if this is the case
if targetStatus.AccountID == requestingAccount.ID {
if requestingAccount != nil && targetStatus.AccountID == requestingAccount.ID {
return true, nil
}