forked from indymedia/epicyon
Extra options
parent
d89bef6879
commit
72250edb29
|
@ -613,5 +613,5 @@ def runDaemon(baseDir: str,domain: str,port=80,httpPrefix='https', \
|
||||||
httpd.ocapAlways, \
|
httpd.ocapAlways, \
|
||||||
debug,httpd.acceptedCaps),daemon=True)
|
debug,httpd.acceptedCaps),daemon=True)
|
||||||
httpd.thrInboxQueue.start()
|
httpd.thrInboxQueue.start()
|
||||||
print('Running ActivityPub daemon on ' + domain + ' port ' + str(port))
|
print('Running ActivityPub server on ' + domain + ' port ' + str(port))
|
||||||
httpd.serve_forever()
|
httpd.serve_forever()
|
||||||
|
|
10
epicyon.py
10
epicyon.py
|
@ -163,6 +163,12 @@ parser.add_argument('--cwsubject','--subject', dest='subject', type=str,default=
|
||||||
help='Subject of content warning')
|
help='Subject of content warning')
|
||||||
parser.add_argument('--reply','--replyto', dest='replyto', type=str,default=None, \
|
parser.add_argument('--reply','--replyto', dest='replyto', type=str,default=None, \
|
||||||
help='Url of post to reply to')
|
help='Url of post to reply to')
|
||||||
|
parser.add_argument("--followersonly", type=str2bool, nargs='?', \
|
||||||
|
const=True, default=True, \
|
||||||
|
help="Send to followers only")
|
||||||
|
parser.add_argument("-c","--client", type=str2bool, nargs='?', \
|
||||||
|
const=True, default=False, \
|
||||||
|
help="Use as an ActivityPub client")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
debug=False
|
debug=False
|
||||||
|
@ -263,8 +269,8 @@ if args.message and nickname:
|
||||||
#ccUrl=httpPrefix+'://'+domain+'/users/'+nickname+'/followers'
|
#ccUrl=httpPrefix+'://'+domain+'/users/'+nickname+'/followers'
|
||||||
ccUrl=None
|
ccUrl=None
|
||||||
sendMessage=args.message
|
sendMessage=args.message
|
||||||
followersOnly=True
|
followersOnly=args.followersonly
|
||||||
clientToServer=False
|
clientToServer=args.client
|
||||||
attachedImageDescription=args.imageDescription
|
attachedImageDescription=args.imageDescription
|
||||||
useBlurhash=args.blurhash
|
useBlurhash=args.blurhash
|
||||||
sendThreads = []
|
sendThreads = []
|
||||||
|
|
Loading…
Reference in New Issue