Skip to content

Commit

Permalink
Merge pull request #83 from NicolasConstant/develop
Browse files Browse the repository at this point in the history
0.13.1 PR
  • Loading branch information
NicolasConstant authored Feb 5, 2021
2 parents 6665402 + 5077819 commit 0bb7e89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/BirdsiteLive.Twitter/CachedTwitterService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class CachedTwitterUserService : ICachedTwitterUserService
// Keep in cache for this time, reset time if accessed.
.SetSlidingExpiration(TimeSpan.FromHours(24))
// Remove from cache after this time, regardless of sliding expiration
.SetAbsoluteExpiration(TimeSpan.FromDays(30));
.SetAbsoluteExpiration(TimeSpan.FromDays(7));

#region Ctor
public CachedTwitterUserService(ITwitterUserService twitterService)
Expand Down
2 changes: 1 addition & 1 deletion src/BirdsiteLive.Twitter/Extractors/TweetExtractor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public string ExtractMessage(ITweet tweet)
var message = tweet.FullText;
var tweetUrls = tweet.Media.Select(x => x.URL).Distinct();

if (tweet.IsRetweet && tweet.QuotedStatusId == null && message.StartsWith("RT") && tweet.RetweetedTweet != null)
if (tweet.IsRetweet && message.StartsWith("RT") && tweet.RetweetedTweet != null)
{
message = tweet.RetweetedTweet.FullText;
tweetUrls = tweet.RetweetedTweet.Media.Select(x => x.URL).Distinct();
Expand Down
2 changes: 1 addition & 1 deletion src/BirdsiteLive/BirdsiteLive.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netcoreapp3.1</TargetFramework>
<UserSecretsId>d21486de-a812-47eb-a419-05682bb68856</UserSecretsId>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<Version>0.13.0</Version>
<Version>0.13.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 0bb7e89

Please sign in to comment.