Include max number of blogs in nodeinfo
This commit is contained in:
parent
11de25237d
commit
13bf5b6638
|
@ -1,9 +1,9 @@
|
||||||
package writefreely
|
package writefreely
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/writeas/go-nodeinfo"
|
|
||||||
"github.com/writeas/web-core/log"
|
"github.com/writeas/web-core/log"
|
||||||
"github.com/writeas/writefreely/config"
|
"github.com/writeas/writefreely/config"
|
||||||
|
"github.com/writefreely/go-nodeinfo"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@ func nodeInfoConfig(db *datastore, cfg *config.Config) *nodeinfo.Config {
|
||||||
GitHub: "https://github.com/writeas/writefreely",
|
GitHub: "https://github.com/writeas/writefreely",
|
||||||
Follow: "https://writing.exchange/@write_as",
|
Follow: "https://writing.exchange/@write_as",
|
||||||
},
|
},
|
||||||
|
MaxBlogs: cfg.App.MaxBlogs,
|
||||||
},
|
},
|
||||||
Protocols: []nodeinfo.NodeProtocol{
|
Protocols: []nodeinfo.NodeProtocol{
|
||||||
nodeinfo.ProtocolActivityPub,
|
nodeinfo.ProtocolActivityPub,
|
||||||
|
|
|
@ -2,10 +2,10 @@ package writefreely
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/writeas/go-nodeinfo"
|
|
||||||
"github.com/writeas/go-webfinger"
|
"github.com/writeas/go-webfinger"
|
||||||
"github.com/writeas/web-core/log"
|
"github.com/writeas/web-core/log"
|
||||||
"github.com/writeas/writefreely/config"
|
"github.com/writeas/writefreely/config"
|
||||||
|
"github.com/writefreely/go-nodeinfo"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue