Skip to content

Commit

Permalink
fix(core/media_downloader): playable story snap record username
Browse files Browse the repository at this point in the history
  • Loading branch information
rhunk authored and sn-o-w committed Sep 4, 2024
1 parent 1f03592 commit f7aa752
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ class MediaDownloader : MessagingRuleFeature("MediaDownloader", MessagingRuleTyp
}?.let { playlistGroup ->
val playlistGroupString = playlistGroup.toString()

val storyUserId = paramMap["TOPIC_SNAP_CREATOR_USER_ID"]?.toString() ?: if (playlistGroupString.contains("storyUserId=")) {
val storyUserId = paramMap["TOPIC_SNAP_CREATOR_USER_ID"]?.toString() ?: paramMap["PLAYABLE_STORY_SNAP_RECORD"]?.toString()?.let {
if (it.contains("userId=")) it.substringAfter("userId=").substringBefore(",") else null
} ?: if (playlistGroupString.contains("storyUserId=")) {
playlistGroupString.substringAfter("storyUserId=").substringBefore(",")
} else {
//story replies
Expand Down

0 comments on commit f7aa752

Please sign in to comment.