forked from indymedia/epicyon
Document the follow option
parent
574937d652
commit
639403a37e
10
README.md
10
README.md
|
@ -290,3 +290,13 @@ By default the server will federate with any others. You can limit this to a wel
|
||||||
``` bash
|
``` bash
|
||||||
python3 epicyon.py --domain [name] --port 8000 --https --federate domain1.net domain2.org domain3.co.uk
|
python3 epicyon.py --domain [name] --port 8000 --https --federate domain1.net domain2.org domain3.co.uk
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Following other accounts
|
||||||
|
|
||||||
|
With your server running you can then follow other accounts with:
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
python3 epicyon.py --nickname [yournick] --domain [name] --follow othernick@domain
|
||||||
|
```
|
||||||
|
|
||||||
|
You may or may not need to use the *--port*, *--https* and *--tor* options, depending upon how your server was set up.
|
|
@ -195,6 +195,10 @@ else:
|
||||||
if configFederationList:
|
if configFederationList:
|
||||||
federationList=configFederationList
|
federationList=configFederationList
|
||||||
|
|
||||||
|
useTor=args.tor
|
||||||
|
if domain.endswith('.onion'):
|
||||||
|
useTor=True
|
||||||
|
|
||||||
if args.follow and nickname:
|
if args.follow and nickname:
|
||||||
if not os.path.isdir(baseDir+'/accounts/'+nickname+'@'+domain):
|
if not os.path.isdir(baseDir+'/accounts/'+nickname+'@'+domain):
|
||||||
print(nickname+' is not an account on the system. use --addaccount if necessary.')
|
print(nickname+' is not an account on the system. use --addaccount if necessary.')
|
||||||
|
@ -212,6 +216,7 @@ if args.follow and nickname:
|
||||||
print(nickname+'@'+domain+' is already following '+followNickname+'@'+followDomain)
|
print(nickname+'@'+domain+' is already following '+followNickname+'@'+followDomain)
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
session = createSession(domain,port,useTor)
|
||||||
personCache={}
|
personCache={}
|
||||||
cachedWebfingers={}
|
cachedWebfingers={}
|
||||||
sendThreads=[]
|
sendThreads=[]
|
||||||
|
@ -248,9 +253,6 @@ if args.ocap:
|
||||||
ocapAlways=args.ocap
|
ocapAlways=args.ocap
|
||||||
if args.dat:
|
if args.dat:
|
||||||
httpPrefix='dat'
|
httpPrefix='dat'
|
||||||
useTor=args.tor
|
|
||||||
if domain.endswith('.onion'):
|
|
||||||
useTor=True
|
|
||||||
|
|
||||||
if args.actor:
|
if args.actor:
|
||||||
if '@' not in args.actor:
|
if '@' not in args.actor:
|
||||||
|
|
Loading…
Reference in New Issue