Extra options

master
Bob Mottram 2019-07-13 10:22:25 +01:00
parent d89bef6879
commit 72250edb29
2 changed files with 9 additions and 3 deletions

View File

@ -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()

View File

@ -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 = []