更新履歴
==== Unreleased
+ * FIX: Cookie使用時に「Listの発言取得に公式RTを含める」の設定が適用されない不具合を修正
==== Ver 3.15.0(2024/06/14)
* NEW: Misskeyでのノート投稿時のファイル添付に対応しました
public bool IsHomeTimeline { get; set; }
+ public bool IncludeRts { get; set; } = true;
+
public TimelineResponseFilter(TwitterAccountState accountState)
{
this.accountState = accountState;
filteredPosts = this.FilterMutedUserPosts(filteredPosts);
}
+ if (!this.IncludeRts)
+ filteredPosts = this.FilterRetweets(filteredPosts);
+
return filteredPosts.ToArray();
}
return false;
}
+
+ private IEnumerable<PostClass> FilterRetweets(IEnumerable<PostClass> posts)
+ => posts.Where(x => x.RetweetedId == null);
}
}
using OpenTween.Api.GraphQL;
using OpenTween.Api.TwitterV2;
using OpenTween.Models;
+using OpenTween.Setting;
namespace OpenTween.SocialProtocol.Twitter
{
var posts = this.account.Legacy.CreatePostsFromJson(statuses, firstLoad);
- var filter = new TimelineResponseFilter(this.account.AccountState);
+ var filter = new TimelineResponseFilter(this.account.AccountState)
+ {
+ IncludeRts = SettingManager.Instance.Common.IsListsIncludeRts,
+ };
posts = filter.Run(posts);
return new(posts, cursorTop, cursorBottom);