Reorder federation check logic on upload

Ref T609
This commit is contained in:
Matt Baer 2020-01-09 13:29:30 -05:00
parent 18d3456a23
commit f5d21c8c1a
1 changed files with 2 additions and 3 deletions

View File

@ -152,9 +152,8 @@ func handleImport(app *App, u *User, w http.ResponseWriter, r *http.Request) err
continue
}
// create public post
if coll.ID != 0 && app.cfg.App.Federation {
// Federate post, if necessary
if app.cfg.App.Federation && coll.ID > 0 {
go federatePost(
app,
&PublicPost{