mirror of
https://github.com/NicolasConstant/BirdsiteLive
synced 2025-06-05 21:49:16 +02:00
added better blacklisting handling
This commit is contained in:
@@ -95,9 +95,16 @@ namespace BirdsiteLive.Domain
|
||||
{
|
||||
// Apply moved to
|
||||
var twitterAccount = await _twitterUserDal.GetTwitterUserAsync(acct);
|
||||
if (twitterAccount == null)
|
||||
{
|
||||
await _twitterUserDal.CreateTwitterUserAsync(acct, -1, validatedUser.ObjectId, validatedUser.FediverseAcct);
|
||||
}
|
||||
else
|
||||
{
|
||||
twitterAccount.MovedTo = validatedUser.ObjectId;
|
||||
twitterAccount.MovedToAcct = validatedUser.FediverseAcct;
|
||||
await _twitterUserDal.UpdateTwitterUserAsync(twitterAccount);
|
||||
}
|
||||
|
||||
// Notify Followers
|
||||
var t = Task.Run(async () =>
|
||||
|
Reference in New Issue
Block a user