hack to handle saved inbox

This commit is contained in:
Nicolas Constant 2020-08-01 13:19:41 -04:00
parent fce355c2e8
commit 16d310a37e
No known key found for this signature in database
GPG key ID: 1E9F677FB01A5688

View file

@ -1,4 +1,5 @@
using System;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
@ -89,6 +90,10 @@ namespace BirdsiteLive.Domain
//}
};
//TODO Remove this
if (targetInbox.Contains(targetHost))
targetInbox = targetInbox.Split(new []{ targetHost }, StringSplitOptions.RemoveEmptyEntries).Last();
return await PostDataAsync(noteActivity, targetHost, actor, targetInbox);
}