Add support of "~/.stikkit/private"

This commit is contained in:
Framawiki 2017-05-05 19:13:45 +02:00 committed by Petr Bena
parent efbdaa0c6d
commit 950094775c
2 changed files with 8 additions and 0 deletions

View File

@ -61,6 +61,7 @@ Within this directory, there are a few key files worth creating.
- *apikey* - If your stikked installation requires an API key, save it in here
- *expiry* - The default expiry time (in minutes) for a paste, if needed
- *author* - The default author name if you wish to use one
- *private* - If you want to mark the paste as private (not visible in recent pastes), create this empty file
Tips
=====

View File

@ -114,6 +114,13 @@ void Configuration::Init()
Configuration::Author = lineauth;
}
fauth.close();
//private
std::ifstream fpriv(homedir + "/.stikkit/private");
if(fpriv.good())
{
Configuration::Private = true;
}
}
if (Configuration::Author.length() < 1)
{