fix(story_logger): ignore friends of friends stories

Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com>
This commit is contained in:
rhunk 2024-06-08 16:23:28 +02:00
parent 5fbd7667b1
commit 97bce2011b

View File

@ -73,6 +73,9 @@ class MixerStories : Feature("MixerStories", loadParams = FeatureLoadParams.INIT
val storyMap = mutableMapOf<String, MutableList<StoryData>>()
firstOrNull(3)?.toReader()?.eachBuffer(3) {
val storySubType = getVarInt(23)
// ignore friends of friends stories
if (storySubType == 39L) return@eachBuffer
followPath(36) {
eachBuffer(1) data@{
val userId = getString(8, 1) ?: return@data