mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-08 04:48:44 +00:00
Fix group news IDs being poster user ID instead of post ID
This commit is contained in:
parent
d440a26476
commit
c1d932d4de
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ public static class ActivityQueryExtensions
|
||||||
{
|
{
|
||||||
Type = groupByActor ? gr.GroupType : gr.GroupType != ActivityGroupType.News ? ActivityGroupType.User : ActivityGroupType.News,
|
Type = groupByActor ? gr.GroupType : gr.GroupType != ActivityGroupType.News ? ActivityGroupType.User : ActivityGroupType.News,
|
||||||
UserId = gr.Activity.UserId,
|
UserId = gr.Activity.UserId,
|
||||||
TargetId = groupByActor ? gr.TargetId : gr.Activity.UserId,
|
TargetId = groupByActor ? gr.TargetId : gr.GroupType != ActivityGroupType.News ? gr.Activity.UserId : gr.TargetNewsId ?? 0,
|
||||||
})
|
})
|
||||||
.ToList(),
|
.ToList(),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue